package com.topone.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.topone.Enum.BussinessStatusEnum;
import com.topone.Utils.EnumUnitl;
import com.topone.dataObject.BusinessUrl;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2017/12/17,0017.
 */
@Data
public class BussinessDTO {
    private String bussinessId; //商家Id
    private String bussinessName; //商家名称
    private String bussinessCode;  //商家code
    private String bussinessProduct;  //商家产品
    private String bussinessUserName;//负责人
    private String bussinessCategory; //商家种类（吃喝玩乐）
    private String bussinessRank;  //业态（火锅，中式，日式）
    private String openid;
    private String bussinessAddress; //商家地址
    private String bussinessPhone;   //商家电话
    private String bussinessPosition; //商家地址
    private String bussinessWechatUrl; //商家公众号地址
    private String bussinessWechatName; //商家公众号名字
    private String bussinessIntroduce; //商家介绍
    private String telephone;          //联系方式
    private String bussinessIcon;     //商家logo
    private Integer bussinessStatus= BussinessStatusEnum.Prepare.getCode();  //商家状态
    private Integer bussinessCredit;
    private String imageId;
    private String bussinessPassword;  //密码
    private BigDecimal balance;
    private BigDecimal totalFee;
    private Integer bussinessUrlId;
    private List<TcCouponDTO> couponList;
    private List<TcUserCouponDTO> userCouponDTOList;
    private BusinessUrl businessUrl;
    private ImageDTO imageDTO;


    @JsonIgnore
    public BussinessStatusEnum getBuessinessStatusEnum(){
        return EnumUnitl.getByCode(bussinessStatus,BussinessStatusEnum.class);
    }
}
